<div style="margin-bottom: 16px;">
      <button nz-button 
        [disabled]="_getCheckedFromSet().length===1&&_getCheckedFromSet()[0]===false" 
        [nzType]="'primary'" [nzLoading]="_deleting" 
        (click)="_deleteOrRestoreDatas(!_isNoOneActive())">

          {{!_isNoOneActive()?'删除':'恢复'}}
      </button>
      <button nz-button >
         <a [routerLink]="['/index/'+(_isOneChecked()?'update':'insert')]">
          {{_isOneChecked()?'修改':'新增'}}
        </a> 
      </button>
      <nz-input [nzType]="'search'" [nzPlaceHolder]="'input search text'" [(ngModel)]="_value" style="width: 200px;"></nz-input>
      
      <span style="margin-left: 8px;" *ngIf="_checkedNumber">Selected {{_checkedNumber}} items</span>
</div>
 <nz-table #nzTable
      [nzAjaxData]="data" 
      [nzTotal]="total"
      [(nzPageIndex)]="pageNum"
      (nzPageIndexChange)="refresh()"
      [(nzPageSize)]="pageSize"
      (nzPageSizeChange)="refresh(true)"
      
      
      [nzLoading]="loading">
      <thead nz-thead>

        <tr>
<!--           <th nz-th>
            <span>Name</span>
            <nz-table-sort (nzValueChange)="sort($event)"></nz-table-sort>
          </th>
          <th nz-th>
            <span>Gender</span>
            <nz-dropdown [nzTrigger]="'click'">
              <i class="anticon anticon-filter" nz-dropdown></i>
              <ul nz-menu>
                <li nz-menu-item *ngFor="let filter of _filterGender">
                  <label nz-checkbox [(ngModel)]="filter.value">
                    <span>{{filter.name}}</span>
                  </label>
                </li>
              </ul>
              <div nz-table-filter>
                <span nz-table-filter-confirm (click)="refreshData(true)">OK</span>
                <span nz-table-filter-clear (click)="reset()">Reset</span>
              </div>
            </nz-dropdown>
          </th>
          <th nz-th><span>Email</span></th> -->


          <th nz-th nzCheckbox>
            <label nz-checkbox [ngModel]="_isAllChecked()" (ngModelChange)="_onCheckAllClick($event)" [nzIndeterminate]="_getCheckedFromSet().length===2">
            </label>
          </th>
          
          <th nz-th><span>账号</span></th>
          <th nz-th><span>名字</span></th>
          <th nz-th><span>角色</span></th>
          <th nz-th><span>创建者</span></th>
          <th nz-th><span>创建时间</span></th>
          <th nz-th><span>修改者</span></th>
          <th nz-th><span>修改时间</span></th>
          <th nz-th><span>备注</span></th>
          <th nz-th><span>数据有效性</span></th>
        </tr>
      </thead>
      <tbody nz-tbody>
        <tr nz-tbody-tr *ngFor="let data of nzTable.data">

          <td nz-td nzCheckbox>
            <label nz-checkbox [(ngModel)]="data.checked">
            </label>
          </td>

          <td nz-td>
            <a>{{data.account}}</a>
          </td>
          <td nz-td>{{data.name}}</td>
          <td nz-td>{{data.roleNames}}</td>
          <td nz-td>{{data.createUserName}}</td>
          <td nz-td>{{data.createTime|date: 'yyyy-MM-dd hh:mm:ss'}}</td>
          <td nz-td>{{data.lastUpdateUserName}}</td>
          <td nz-td>{{data.lastUpdateTime|date: 'yyyy-MM-dd hh:mm:ss'}}</td>
          <td nz-td>{{data.name}}</td>
          <td nz-td>            
           <nz-switch [(ngModel)]="data.active" (ngModelChange)="_changeActive(data)">
              <i class=" anticon anticon-check" checked></i>
              <i class=" anticon anticon-cross" unchecked></i>
             </nz-switch>
          </td>
        </tr>
      </tbody>
    </nz-table>
